<?php
    if (!isset ($_SESSION['username']) || !isset($_SESSION['nickname'])|| !isset($_SESSION['name']) ){
        //redirect to login page
        header ("location:".$__config['base_url'] . "index.php");
    }

?>
